<div ng-if="pagedata.showredpage" class="popup">
	<style>
	  .rp-container {
    padding-left:10px;
    padding-right:10px;
  }
  .rp-background-lightgray {
    background-color:rgb(240, 240, 240);
  }
  .rp-record {
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(240, 240, 240) ;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .rp-record .avatar {
    width: 50px;
    border-radius: 3px;
  }
  .rp-record .info {
    display: inline-block;
    width: 100%;
  }
  .rp-record .desc {
    display:inline-block;
    margin-left: 1em;
  }
  .rp-record .datetime {
    color: rgb(200, 200, 200);
  }
  .rp-record .amount {
    float: right;
  }
 #unpaid .unpaid-alert .unpaid-subtitle{
    color: #999;
    text-align: center;
    width: 13rem;
    margin: .6rem auto
}
	</style>
	<div class="popup-body">
		<div class="popup-center" style="padding-bottom:0.5rem;width:80%">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showredpage=false"></i>
			<div style="color:#ffcc00;box-shadow:0 1px 2px gray;padding: 0 3px;text-align:center;margin-bottom:0.3rem;height:220px;background-color:#e52600;border-bottom-right-radius:50% 70px;border-bottom-left-radius:50% 70px;">
			  <div style="text-align: center;padding-top:1rem;">
				<div style="">
				  <img ng-src="{{tomedia(pagedata.bm_credit.member.avatar) ||'../core/resource/images/nopic.jpg'}}" style="display:inline-block;border-radius:5;width:25px;height:24px;margin:0;padding:0">
				  <span style="padding-left:5px;vertical-align:middle;font-weight:bold;line-height:24px;font-size:20px;">{{pagedata.bm_credit.member.nickname}}的奖励</span>
				</div>
				<div style="margin: 10px;"><small>获得首次奖励</small></div>
				<div style="margin-top:1rem;">
				  <span ng-if="pagedata.bm_credit.credit1>0" style="line-height:1em;font-size:1.2rem;">积分：{{pagedata.bm_credit.credit1 ||'0.00'}}个</span>
				   <span ng-if="pagedata.bm_credit.credit3>0" style="line-height:1em;font-size:1.2rem;">金币：{{pagedata.bm_credit.credit3 ||'0.00'}}个</span>
				  </div>
			  </div>
			</div>
		</div>
	</div>
</div>
<script>
scope.get('jy_weishop/get_sales/bindmobile_credit/',function(res){
	console.log('bindmobile_credit');console.log(res);
	if(res!='none'){
			scope.pagedata.bm_credit=res;
			scope.pagedata.showredpage=true;
			scope.$evalAsync();
	}
});
</script>